-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui] Add storageManager
prop to ThemeProvider
#45136
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy preview@material-ui/core: parsed: +0.04% , gzip: +0.09% Bundle size reportDetails of bundle changes (Toolpad) |
storageManager
prop to ThemeProvider
.storageManager
prop to ThemeProvider
Signed-off-by: Siriwat K <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should cherry-pick this to v6.x
aa7c1c2
to
b020037
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor notes on the text here, otherwise the docs additions look good.
Co-authored-by: Sam Sycamore <[email protected]> Signed-off-by: Siriwat K <[email protected]>
closes #35837
Changes
storageManager
to theThemeProvider
. The use cases I see:storageManager={null}
localStorage
to a custom one e.g. cookies.localStorage
logic to localStorageManager.StorageManger
from@mui/material/styles
so user can create a custom one with type safety.